<template>
  <div id="app">
    <router-view v-if='!$route.meta.keepAlive'/>
    <keep-alive>
      <!-- 只给home页进行缓存 -->
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
  </div>
</template>
